home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-02-07 | 2.5 KB | 100 lines | [TEXT/MPS ] |
- # 3/20/90
- # MPW 3.2 Install411 Script.
- #
- # Copyright 1989, Apple Computer, Inc.
- # All Rights Reserved.
- #
-
- Set Exit 0
-
- # Process input parameters.
-
- if "{#}" > 1
- Echo "###Useage {0} [411DestinationVolume]"
- Beep
- Exit 1
- End
-
- Set 411SourceDir `which "{0}"` # get pathname of this script
- Set 411SourceDir "`files -q -f "{411SourceDir}"`" # convert to full pathname
- if "{411SourceDir}"=~/(≈:)®1≈/ # strip the filename
- Set 411SourceDir "{®1}"
- End
-
- Set 411DestDir ""
- if {#}==1
- Set 411DestDir "{1}"
- if "{411DestDir}"
- if "`Volumes -q "{411DestDir}"`"!~/{411DestDir}/
- Echo "### 411 destination volume ∂"{411DestDir}∂" not found."
- Echo "###Useage {0} [411DestinationVolume]"
- Beep
- Exit 1
- End
- Set 411DestDir "{411DestDir}"411:
- if not "`Exists -d "{411DestDir}"`"
- NewFolder "{411DestDir}"
- End
- End
- End
-
-
- # Copy the 411 User Startup script into the user's MPW Shell directory.
-
- #disable the old UserStartup script if it exists.
- if "`Exists -f "{ShellDirectory}UserStartup•~_Help_"`"
- Rename "{ShellDirectory}UserStartup•~_Help_" "{ShellDirectory}UserStartup.~_Help_" ≥dev:null
- End
- Duplicate "{411SourceDir}Tools:UserStartup•Help" "{ShellDirectory}"
-
- # Remove old help system files.
-
- Delete -y "{ShellDirectory}Help Folder"
-
- # Copy the 411 tools into the user's MPW Tools directory.
-
- Duplicate -y "{411SourceDir}Tools:Get" "{MPW}Tools:"
-
-
- # Copy the entire 411 folder from the Source location to the specified destination
-
- if "{411DestDir}"
- Duplicate "{411SourceDir}"≈ "{411DestDir}"
-
- # delete the old 'Help Files' folder if it exists
-
- if "`Exists -d "{411DestDir}Help Files:"`"
- Delete "{411DestDir}"'Help Files':CIncludesHelp≈
- Delete "{411DestDir}"'Help Files':PInterfacesHelp≈
- Delete "{411DestDir}"'Help Files':MPWHelp≈
- Delete "{411DestDir}"'Help Files':ResourcesHelp≈
- Delete "{411DestDir}"'Help Files':TechNotesHelp≈
- Delete "{411DestDir}"'Help Files':InsideMacintoshHelp≈
-
- if "`files "{411DestDir}Help Files:"`"==""
- Delete -y "{411DestDir}Help Files:"
- End
- End
-
- # delete the old 'Tools and Scripts' folder if it exists
-
- if "`Exists -d "{411DestDir}Tools and Scripts:"`"
- Delete -y "{411DestDir}Tools and Scripts:"
- End
- End
-
-
- # Setup the 411 directory.
-
- Set HelpDirectory "{ShellDirectory}Help Folder:"
-
- if not "`Exists "{HelpDirectory}"`"
- NewFolder "{HelpDirectory}"
- End
- if "{411DestDir}"
- Echo "{411DestDir}"
- Else
- Echo "{411SourceDir}"
- End >"{HelpDirectory}Help_Folder"
-
-